﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Documents;
using Microsoft.Owin.Hosting;
using MQTT.Server.Host.Controller;
using MQTT.Server.Host.WebAPI;
using Server.Library.MQTT;
using Server.Library.SqLite;

namespace MQTT.Server.Host
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        public static SqLiteOperate OperateSql;
        public static string ServerIp = "127.0.0.1";
        public const string SqlFileName = "MQTT.db";
        public const int MQTTServerPort = 1883;
        public static MQTTServerEntity server;

        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            // 连接数据库
            OperateSql = new SqLiteOperate(SqlFileName);
            OperateSql.Connected();
        }
    }
}
